{extend name="common/public" /}
    {block name="content"}

<div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
    <div class="widget am-cf">
        <div class="widget-head am-cf">
            <div class="widget-title am-fl">{$Request.param.name|default='回收分类'}</div>
            <div class="widget-function am-fr">
                <a href="javascript:;" class="am-icon-cog"></a>
            </div>
        </div>
        <div class="widget-body  widget-body-lg am-fr">

            <table width="100%" class="am-table am-table-compact am-table-bordered tpl-table-black ">
                <thead>

                <tr>
                    <th class="am-lg-text-center" style="width: 5%">
                        序号
                    </th>
                    <th class="am-lg-text-center">
                        类型
                    </th>
                    <th class="am-lg-text-center">
                        描述
                    </th>
                    <th class="am-lg-text-center">
                        是否开放
                    </th>
                    <th>操作</th>
                </tr>
                </thead>
                {foreach $list as $v}
                    <tr class="gradeX">
                        <td class='am-lg-text-center'> {$v.id}</td>
                        <td class='am-lg-text-center'> {$v.title}</td>
                        <td class="am-lg-text-center"> {$v.describe}</td>
                        <td class="am-lg-text-center"> {eq name='$v.is_open' value='1'}是{else/}否{/eq}</td>
                        <td>
                            <div class="tpl-table-black-operation">
                                {eq name ="ADMINTYPE" value="1"}
                                <a onclick="openUrl('{:url('edit',['id'=>$v['id']])}')">
                                    <i class="am-icon-pencil"></i> 编辑
                                </a>
                                {/eq}
                                <a href="{:url('recycling_list',['type_id'=>$v['id']])}">
                                    <i class="am-icon-eye"></i> 子分类
                                </a>
                            </div>
                        </td>
                    </tr>
                {/foreach}
            </table>

        </div>
    </div>
</div>

{/block}
{/extend}